package com.zl.tby.service;

import com.zl.tby.model.Demo;
import org.noear.wood.IPage;

/**
 * @author wangjl
 * @title: ApiService
 * @projectName share
 * @description: 演示
 * @date 2024/5/916:08
 */
public interface DemoService {

    /**
     * @author wangjl
     * @description: 创建demo
     */
    Demo create(Demo demo);


    /**
     * @author wangjl
     * @description: 获取demo
     */
    Demo get(Long id);

    /**
     * @author wangjl
     * @description: 删除
     */
    int delete(Long id);

    /**
     * @author wangjl
     * @description: 获取demo
     */
    int update(Demo demo);

    /**
     * @author wangjl
     * @description: 分页
     */
    IPage<Demo> page(int start, int size, String title);
}
